<?php /* Smarty version 2.6.18, created on 2009-05-22 02:42:47
         compiled from ua-admin/newstype_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'ua-admin/newstype_index.html', 25, false),array('function', 'html_options', 'ua-admin/newstype_index.html', 60, false),array('modifier', 'truncate', 'ua-admin/newstype_index.html', 28, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>控制台_<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
</head>

<body>
<a name="top" />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;资讯类别管理</div></td></tr>
</table>
<br />
<!-- 标题 -->
<form name="listfrm" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header" align="center"><td><input type="checkbox" name="newstypeidAll" onClick="uaCheckAll(this, 'newstypeid[]')" title="全选"></td>
<td><span>类别名称</span></td>
<td>添加新闻</td>
<td><div style="float:right; margin-right:4px; padding-bottom:9px"><img onClick="collapse_change('1')" id="menuimg_1" src="./images/menu_reduce.gif" border="0" style="vertical-align:middle;"/></div></td></tr>
<tbody id="menu_1" style="display: yes"><?php $_from = $this->_tpl_vars['NewstypeList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['newstypes'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['newstypes']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['v']):
        $this->_foreach['newstypes']['iteration']++;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values' => "#eeeeee,#ffffff"), $this);?>
" align="center">
<td><input type="checkbox" name="newstypeid[]" value="<?php echo $this->_tpl_vars['v']['NewstypeId']; ?>
" onClick="uaCheckItem(this, 'newstypeidAll')"></td>
<td><a href="./newstype.php?action=view&id=<?php echo $this->_tpl_vars['v']['NewstypeId']; ?>
" title="查看或者修改">
  <?php echo ((is_array($_tmp=$this->_tpl_vars['v']['NewstypeName'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)); ?>

</a></td>
<td><a href="./news.php?action=mod&sid=<?php echo $this->_tpl_vars['v']['NewstypeId']; ?>
">添加</a></td>
<td><a href="./newstype.php?action=mod&id=<?php echo $this->_tpl_vars['v']['NewstypeId']; ?>
"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/mod.gif" border="0" alt="修改"></a>  <a href="./newstype.php?action=del&id=<?php echo $this->_tpl_vars['v']['NewstypeId']; ?>
"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/delete.gif" border="0" alt="删除"></a></td>
</tr>
<?php endforeach; else: ?>
<tr bgcolor="#ffffff">
<td colspan="5" align="center"><strong>目前没有任何数据</strong></td>
</tr>
<?php endif; unset($_from); ?>
</tbody>
<!-- 分页 -->
<tr align="center"><td class="altbg1" colspan="5"><?php echo $this->_tpl_vars['ByPages']; ?>
</td></tr>
<tr class="header" bgcolor="#ffffff">
<td colspan="3"><input class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'" type="submit" name="del" value="删除" onClick="return confirmAction('确定删除吗?');"></td>
<td><div align="center"><a title="返回顶部" href="#top"><img id="go_top" src="./images/go_top.gif" border="0" style="vertical-align:middle;"/></a></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<!-- 快速添加 -->
<form name="quickaddfrm" action="" method="post">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="tableborder" align="center">
<tr class="header"><td colspan="5"><div align="left">快速添加</div></td></tr>
<tr>
	<td width="9%"><div align="right">类别名称 :</div></td>
	<td width="15%"><input name="newstype[name]" type="text" id="newstype_name"></td>
	<td width="10%"><div align="right">上级类别 :</div></td>
	<td><select name="newstype[parent_id]" id="parent_id">
		  <option value="0">根目录</option>
		  <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['AllParents'],'selected' => $this->_tpl_vars['n']['NewstypeParentId']), $this);?>

		  </select></td>
	<td><input name="save" type="submit" id="save" value="添加" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
  </tr>
</table>
</form>
<!-- 结束new -->

</body>
</html>